package com.zhongwang.business.gen.entity;

import java.math.BigDecimal;
import java.util.ArrayList;
import java.util.List;

public class QuotationPaymentExample {
    protected String orderByClause;

    protected boolean distinct;

    protected List<Criteria> oredCriteria;

    public QuotationPaymentExample() {
        oredCriteria = new ArrayList<Criteria>();
    }

    public void setOrderByClause(String orderByClause) {
        this.orderByClause = orderByClause;
    }

    public String getOrderByClause() {
        return orderByClause;
    }

    public void setDistinct(boolean distinct) {
        this.distinct = distinct;
    }

    public boolean isDistinct() {
        return distinct;
    }

    public List<Criteria> getOredCriteria() {
        return oredCriteria;
    }

    public void or(Criteria criteria) {
        oredCriteria.add(criteria);
    }

    public Criteria or() {
        Criteria criteria = createCriteriaInternal();
        oredCriteria.add(criteria);
        return criteria;
    }

    public Criteria createCriteria() {
        Criteria criteria = createCriteriaInternal();
        if (oredCriteria.size() == 0) {
            oredCriteria.add(criteria);
        }
        return criteria;
    }

    protected Criteria createCriteriaInternal() {
        Criteria criteria = new Criteria();
        return criteria;
    }

    public void clear() {
        oredCriteria.clear();
        orderByClause = null;
        distinct = false;
    }

    protected abstract static class GeneratedCriteria {
        protected List<Criterion> criteria;

        protected GeneratedCriteria() {
            super();
            criteria = new ArrayList<Criterion>();
        }

        public boolean isValid() {
            return criteria.size() > 0;
        }

        public List<Criterion> getAllCriteria() {
            return criteria;
        }

        public List<Criterion> getCriteria() {
            return criteria;
        }

        protected void addCriterion(String condition) {
            if (condition == null) {
                throw new RuntimeException("Value for condition cannot be null");
            }
            criteria.add(new Criterion(condition));
        }

        protected void addCriterion(String condition, Object value, String property) {
            if (value == null) {
                throw new RuntimeException("Value for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value));
        }

        protected void addCriterion(String condition, Object value1, Object value2, String property) {
            if (value1 == null || value2 == null) {
                throw new RuntimeException("Between values for " + property + " cannot be null");
            }
            criteria.add(new Criterion(condition, value1, value2));
        }

        public Criteria andQttPayIdIsNull() {
            addCriterion("qtt_pay_id is null");
            return (Criteria) this;
        }

        public Criteria andQttPayIdIsNotNull() {
            addCriterion("qtt_pay_id is not null");
            return (Criteria) this;
        }

        public Criteria andQttPayIdEqualTo(Integer value) {
            addCriterion("qtt_pay_id =", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdNotEqualTo(Integer value) {
            addCriterion("qtt_pay_id <>", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdGreaterThan(Integer value) {
            addCriterion("qtt_pay_id >", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("qtt_pay_id >=", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdLessThan(Integer value) {
            addCriterion("qtt_pay_id <", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdLessThanOrEqualTo(Integer value) {
            addCriterion("qtt_pay_id <=", value, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdIn(List<Integer> values) {
            addCriterion("qtt_pay_id in", values, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdNotIn(List<Integer> values) {
            addCriterion("qtt_pay_id not in", values, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdBetween(Integer value1, Integer value2) {
            addCriterion("qtt_pay_id between", value1, value2, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQttPayIdNotBetween(Integer value1, Integer value2) {
            addCriterion("qtt_pay_id not between", value1, value2, "qttPayId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNull() {
            addCriterion("quote_id is null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIsNotNull() {
            addCriterion("quote_id is not null");
            return (Criteria) this;
        }

        public Criteria andQuoteIdEqualTo(Integer value) {
            addCriterion("quote_id =", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotEqualTo(Integer value) {
            addCriterion("quote_id <>", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThan(Integer value) {
            addCriterion("quote_id >", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdGreaterThanOrEqualTo(Integer value) {
            addCriterion("quote_id >=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThan(Integer value) {
            addCriterion("quote_id <", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdLessThanOrEqualTo(Integer value) {
            addCriterion("quote_id <=", value, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdIn(List<Integer> values) {
            addCriterion("quote_id in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotIn(List<Integer> values) {
            addCriterion("quote_id not in", values, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdBetween(Integer value1, Integer value2) {
            addCriterion("quote_id between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQuoteIdNotBetween(Integer value1, Integer value2) {
            addCriterion("quote_id not between", value1, value2, "quoteId");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusIsNull() {
            addCriterion("qtt_pay_status is null");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusIsNotNull() {
            addCriterion("qtt_pay_status is not null");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusEqualTo(Integer value) {
            addCriterion("qtt_pay_status =", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusNotEqualTo(Integer value) {
            addCriterion("qtt_pay_status <>", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusGreaterThan(Integer value) {
            addCriterion("qtt_pay_status >", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusGreaterThanOrEqualTo(Integer value) {
            addCriterion("qtt_pay_status >=", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusLessThan(Integer value) {
            addCriterion("qtt_pay_status <", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusLessThanOrEqualTo(Integer value) {
            addCriterion("qtt_pay_status <=", value, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusIn(List<Integer> values) {
            addCriterion("qtt_pay_status in", values, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusNotIn(List<Integer> values) {
            addCriterion("qtt_pay_status not in", values, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusBetween(Integer value1, Integer value2) {
            addCriterion("qtt_pay_status between", value1, value2, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andQttPayStatusNotBetween(Integer value1, Integer value2) {
            addCriterion("qtt_pay_status not between", value1, value2, "qttPayStatus");
            return (Criteria) this;
        }

        public Criteria andPayItemIsNull() {
            addCriterion("pay_item is null");
            return (Criteria) this;
        }

        public Criteria andPayItemIsNotNull() {
            addCriterion("pay_item is not null");
            return (Criteria) this;
        }

        public Criteria andPayItemEqualTo(Integer value) {
            addCriterion("pay_item =", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemNotEqualTo(Integer value) {
            addCriterion("pay_item <>", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemGreaterThan(Integer value) {
            addCriterion("pay_item >", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_item >=", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemLessThan(Integer value) {
            addCriterion("pay_item <", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemLessThanOrEqualTo(Integer value) {
            addCriterion("pay_item <=", value, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemIn(List<Integer> values) {
            addCriterion("pay_item in", values, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemNotIn(List<Integer> values) {
            addCriterion("pay_item not in", values, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemBetween(Integer value1, Integer value2) {
            addCriterion("pay_item between", value1, value2, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayItemNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_item not between", value1, value2, "payItem");
            return (Criteria) this;
        }

        public Criteria andPayConditionIsNull() {
            addCriterion("pay_condition is null");
            return (Criteria) this;
        }

        public Criteria andPayConditionIsNotNull() {
            addCriterion("pay_condition is not null");
            return (Criteria) this;
        }

        public Criteria andPayConditionEqualTo(String value) {
            addCriterion("pay_condition =", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionNotEqualTo(String value) {
            addCriterion("pay_condition <>", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionGreaterThan(String value) {
            addCriterion("pay_condition >", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionGreaterThanOrEqualTo(String value) {
            addCriterion("pay_condition >=", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionLessThan(String value) {
            addCriterion("pay_condition <", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionLessThanOrEqualTo(String value) {
            addCriterion("pay_condition <=", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionLike(String value) {
            addCriterion("pay_condition like", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionNotLike(String value) {
            addCriterion("pay_condition not like", value, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionIn(List<String> values) {
            addCriterion("pay_condition in", values, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionNotIn(List<String> values) {
            addCriterion("pay_condition not in", values, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionBetween(String value1, String value2) {
            addCriterion("pay_condition between", value1, value2, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayConditionNotBetween(String value1, String value2) {
            addCriterion("pay_condition not between", value1, value2, "payCondition");
            return (Criteria) this;
        }

        public Criteria andPayPercentIsNull() {
            addCriterion("pay_percent is null");
            return (Criteria) this;
        }

        public Criteria andPayPercentIsNotNull() {
            addCriterion("pay_percent is not null");
            return (Criteria) this;
        }

        public Criteria andPayPercentEqualTo(Integer value) {
            addCriterion("pay_percent =", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentNotEqualTo(Integer value) {
            addCriterion("pay_percent <>", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentGreaterThan(Integer value) {
            addCriterion("pay_percent >", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_percent >=", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentLessThan(Integer value) {
            addCriterion("pay_percent <", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentLessThanOrEqualTo(Integer value) {
            addCriterion("pay_percent <=", value, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentIn(List<Integer> values) {
            addCriterion("pay_percent in", values, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentNotIn(List<Integer> values) {
            addCriterion("pay_percent not in", values, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentBetween(Integer value1, Integer value2) {
            addCriterion("pay_percent between", value1, value2, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayPercentNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_percent not between", value1, value2, "payPercent");
            return (Criteria) this;
        }

        public Criteria andPayAmountIsNull() {
            addCriterion("pay_amount is null");
            return (Criteria) this;
        }

        public Criteria andPayAmountIsNotNull() {
            addCriterion("pay_amount is not null");
            return (Criteria) this;
        }

        public Criteria andPayAmountEqualTo(BigDecimal value) {
            addCriterion("pay_amount =", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotEqualTo(BigDecimal value) {
            addCriterion("pay_amount <>", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountGreaterThan(BigDecimal value) {
            addCriterion("pay_amount >", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountGreaterThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount >=", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountLessThan(BigDecimal value) {
            addCriterion("pay_amount <", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountLessThanOrEqualTo(BigDecimal value) {
            addCriterion("pay_amount <=", value, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountIn(List<BigDecimal> values) {
            addCriterion("pay_amount in", values, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotIn(List<BigDecimal> values) {
            addCriterion("pay_amount not in", values, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount between", value1, value2, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayAmountNotBetween(BigDecimal value1, BigDecimal value2) {
            addCriterion("pay_amount not between", value1, value2, "payAmount");
            return (Criteria) this;
        }

        public Criteria andPayMethodIsNull() {
            addCriterion("pay_method is null");
            return (Criteria) this;
        }

        public Criteria andPayMethodIsNotNull() {
            addCriterion("pay_method is not null");
            return (Criteria) this;
        }

        public Criteria andPayMethodEqualTo(Integer value) {
            addCriterion("pay_method =", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodNotEqualTo(Integer value) {
            addCriterion("pay_method <>", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodGreaterThan(Integer value) {
            addCriterion("pay_method >", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodGreaterThanOrEqualTo(Integer value) {
            addCriterion("pay_method >=", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodLessThan(Integer value) {
            addCriterion("pay_method <", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodLessThanOrEqualTo(Integer value) {
            addCriterion("pay_method <=", value, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodIn(List<Integer> values) {
            addCriterion("pay_method in", values, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodNotIn(List<Integer> values) {
            addCriterion("pay_method not in", values, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodBetween(Integer value1, Integer value2) {
            addCriterion("pay_method between", value1, value2, "payMethod");
            return (Criteria) this;
        }

        public Criteria andPayMethodNotBetween(Integer value1, Integer value2) {
            addCriterion("pay_method not between", value1, value2, "payMethod");
            return (Criteria) this;
        }
    }

    public static class Criteria extends GeneratedCriteria {

        protected Criteria() {
            super();
        }
    }

    public static class Criterion {
        private String condition;

        private Object value;

        private Object secondValue;

        private boolean noValue;

        private boolean singleValue;

        private boolean betweenValue;

        private boolean listValue;

        private String typeHandler;

        public String getCondition() {
            return condition;
        }

        public Object getValue() {
            return value;
        }

        public Object getSecondValue() {
            return secondValue;
        }

        public boolean isNoValue() {
            return noValue;
        }

        public boolean isSingleValue() {
            return singleValue;
        }

        public boolean isBetweenValue() {
            return betweenValue;
        }

        public boolean isListValue() {
            return listValue;
        }

        public String getTypeHandler() {
            return typeHandler;
        }

        protected Criterion(String condition) {
            super();
            this.condition = condition;
            this.typeHandler = null;
            this.noValue = true;
        }

        protected Criterion(String condition, Object value, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.typeHandler = typeHandler;
            if (value instanceof List<?>) {
                this.listValue = true;
            } else {
                this.singleValue = true;
            }
        }

        protected Criterion(String condition, Object value) {
            this(condition, value, null);
        }

        protected Criterion(String condition, Object value, Object secondValue, String typeHandler) {
            super();
            this.condition = condition;
            this.value = value;
            this.secondValue = secondValue;
            this.typeHandler = typeHandler;
            this.betweenValue = true;
        }

        protected Criterion(String condition, Object value, Object secondValue) {
            this(condition, value, secondValue, null);
        }
    }
}